package org.moonlight.jvm.instructions.base;

import lombok.Setter;

/**
 * 存储和加载类指令需要根据索引存取局部变量表，索引由单字节操作数给出
 *
 * @author Moonlight
 * @createTime 2023/8/16 14:15
 **/

public abstract class Index8Instruction implements Instruction {

    /** 存储和加载类指令需要根据索引存取局部变量表，索引由单字节操作数给出 **/
    @Setter
    protected int idx;

    @Override
    public void fetchOperands(BytecodeReader reader) {
        this.idx = reader.readInt8();
    }
}
